package com.youpai.platform.vulture.service.config;

import com.youpai.platform.vulture.service.gateway.TcpServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @date: 2022/6/23 14:31
 * @author: Anna
 * @version: 1.0
 * @description: 服务启动
 */
@Component
public class ServerRunner implements CommandLineRunner {

    @Resource
    private TcpServer tcpServer;

    @Override
    public void run(String... args) throws Exception {
        tcpServer.startTcpServer();
    }
}
